package com.epfresh.bean;

import java.util.List;

/**
 * Created by wzh on 16-7-6.
 */
public class GoodsDetail {


    public String getArrivalDate() {
        return arrivalDate;
    }

    public void setArrivalDate(String arrivalDate) {
        this.arrivalDate = arrivalDate;
    }

    public void setPriceOnly(Double priceOnly) {
        this.priceOnly = priceOnly;
    }


    private Integer promotionItemType;
    private String promotionItemId;
    private String promotionItemBeginTime;
    private String promotionMarkUrl;
    private String responseTime;
    private String promotionItemEndTime;
    private String promotionItemQuantityPerAccount;
    private int promotionItemStatus;
    private boolean isDeleted;
    private int salesVolume;
    private String createdTime;
    private int inventoryAmount;
    private String chargeUnit;
    private String modifiedTime;
    private String number;
    private int merchantId;
    private String packageSize;
    private boolean purchaseIsSale;
    private String thumbnail;
    private int status;
    private String barCode;
    private String weight;
    private boolean isProduct;
    private PromotionBean promotion;
    private ProductSpecPriceBean productSpecPrice;
    private String categoryiiiName;

    public String getCategoryiiiName() {
        return categoryiiiName;
    }

    public void setCategoryiiiName(String categoryiiiName) {
        this.categoryiiiName = categoryiiiName;
    }

    public ProductSpecPriceBean getProductSpecPrice() {
        return productSpecPrice;
    }

    public void setProductSpecPrice(ProductSpecPriceBean productSpecPrice) {
        this.productSpecPrice = productSpecPrice;
    }

    public PromotionBean getPromotion() {
        return promotion;
    }

    public void setPromotion(PromotionBean promotion) {
        this.promotion = promotion;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public int getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(int salesVolume) {
        this.salesVolume = salesVolume;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public int getInventoryAmount() {
        return inventoryAmount;
    }

    public void setInventoryAmount(int inventoryAmount) {
        this.inventoryAmount = inventoryAmount;
    }

    public String getChargeUnit() {
        return chargeUnit;
    }

    public void setChargeUnit(String chargeUnit) {
        this.chargeUnit = chargeUnit;
    }

    public String getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(String modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(int merchantId) {
        this.merchantId = merchantId;
    }

    public String getPackageSize() {
        return packageSize;
    }

    public void setPackageSize(String packageSize) {
        this.packageSize = packageSize;
    }

    public boolean isPurchaseIsSale() {
        return purchaseIsSale;
    }

    public void setPurchaseIsSale(boolean purchaseIsSale) {
        this.purchaseIsSale = purchaseIsSale;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public boolean isProduct() {
        return isProduct;
    }

    public void setProduct(boolean product) {
        isProduct = product;
    }

    public String getPromotionMarkUrl() {
        return promotionMarkUrl;
    }

    public void setPromotionMarkUrl(String promotionMarkUrl) {
        this.promotionMarkUrl = promotionMarkUrl;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public Integer getPromotionItemType() {
        return promotionItemType;
    }

    public void setPromotionItemType(Integer promotionItemType) {
        this.promotionItemType = promotionItemType;
    }

    public String getPromotionItemId() {
        return promotionItemId;
    }

    public void setPromotionItemId(String promotionItemId) {
        this.promotionItemId = promotionItemId;
    }

    public String getPromotionItemBeginTime() {
        return promotionItemBeginTime;
    }

    public void setPromotionItemBeginTime(String promotionItemBeginTime) {
        this.promotionItemBeginTime = promotionItemBeginTime;
    }

    public String getPromotionItemEndTime() {
        return promotionItemEndTime;
    }

    public void setPromotionItemEndTime(String promotionItemEndTime) {
        this.promotionItemEndTime = promotionItemEndTime;
    }

    public String getPromotionItemQuantityPerAccount() {
        return promotionItemQuantityPerAccount;
    }

    public Double getPromotionItemQuantityPerAccountD() {
        if (promotion != null) {
            try {
                Double aDouble = Double.valueOf(promotion.getQuantityPerAccount());
                return aDouble;
            } catch (Exception e) {

            }
        }
        return null;
    }

    public void setPromotionItemQuantityPerAccount(String promotionItemQuantityPerAccount) {
        this.promotionItemQuantityPerAccount = promotionItemQuantityPerAccount;
    }

    public int getPromotionItemStatus() {
        return promotionItemStatus;
    }

    public void setPromotionItemStatus(int promotionItemStatus) {
        this.promotionItemStatus = promotionItemStatus;
    }

    private String species;

    public String getSpecies() {
        return species;
    }

    public void setSpecies(String species) {
        this.species = species;
    }

    private Purchase purchase;

    public Purchase getPurchase() {
        return purchase;
    }

    public void setPurchase(Purchase purchase) {
        this.purchase = purchase;
    }

    private String arrivalDate;

    public static class Purchase {


        private String id;
        //        private String arrivalDate;
//        private String productionDate;
        private String origin;
        private String upstreamMarket;
        private String upstreamMerchant;
        private String quantity;
        //        private String originProveImageIds;
        private String productId;
        private String product;
        //        private String saleDeadline;
        private List<String> originProveImageIdList;
        private List<String> originProveImages;


        //修改后字段
        private Object arrivalDate;
        private Object saleDeadline;
        private Object productionDate;
        private Object originProveImageIds;

        //新增字段
        private Object originProveImageUrls;
        private Object productParseDto;
        private Object specPurchase;
        private Object price;
        private long createdTime;
        private Object productSpecParseDto;

        public Object getOriginProveImageUrls() {
            return originProveImageUrls;
        }

        public void setOriginProveImageUrls(Object originProveImageUrls) {
            this.originProveImageUrls = originProveImageUrls;
        }

        public Object getProductParseDto() {
            return productParseDto;
        }

        public void setProductParseDto(Object productParseDto) {
            this.productParseDto = productParseDto;
        }

        public Object getSpecPurchase() {
            return specPurchase;
        }

        public void setSpecPurchase(Object specPurchase) {
            this.specPurchase = specPurchase;
        }

        public Object getPrice() {
            return price;
        }

        public void setPrice(Object price) {
            this.price = price;
        }

        public long getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(long createdTime) {
            this.createdTime = createdTime;
        }

        public Object getProductSpecParseDto() {
            return productSpecParseDto;
        }

        public void setProductSpecParseDto(Object productSpecParseDto) {
            this.productSpecParseDto = productSpecParseDto;
        }


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public Object getArrivalDate() {
            return arrivalDate;
        }

        public void setArrivalDate(Object arrivalDate) {
            this.arrivalDate = arrivalDate;
        }

        public Object getProductionDate() {
            return productionDate;
        }

        public void setProductionDate(Object productionDate) {
            this.productionDate = productionDate;
        }

        public String getOrigin() {
            return origin;
        }

        public void setOrigin(String origin) {
            this.origin = origin;
        }

        public String getUpstreamMarket() {
            return upstreamMarket;
        }

        public void setUpstreamMarket(String upstreamMarket) {
            this.upstreamMarket = upstreamMarket;
        }

        public String getUpstreamMerchant() {
            return upstreamMerchant;
        }

        public void setUpstreamMerchant(String upstreamMerchant) {
            this.upstreamMerchant = upstreamMerchant;
        }

        public String getQuantity() {
            return quantity;
        }

        public void setQuantity(String quantity) {
            this.quantity = quantity;
        }

        public Object getOriginProveImageIds() {
            return originProveImageIds;
        }

        public void setOriginProveImageIds(Object originProveImageIds) {
            this.originProveImageIds = originProveImageIds;
        }

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public String getProduct() {
            return product;
        }

        public void setProduct(String product) {
            this.product = product;
        }

        public Object getSaleDeadline() {
            return saleDeadline;
        }

        public void setSaleDeadline(Object saleDeadline) {
            this.saleDeadline = saleDeadline;
        }

        public List<String> getOriginProveImageIdList() {
            return originProveImageIdList;
        }

        public void setOriginProveImageIdList(List<String> originProveImageIdList) {
            this.originProveImageIdList = originProveImageIdList;
        }

        public List<String> getOriginProveImages() {
            return originProveImages;
        }

        public void setOriginProveImages(List<String> originProveImages) {
            this.originProveImages = originProveImages;
        }
    }


    private boolean isDc;
    private String levelId;
    private String cityName;
    private int commentsCount;
    private String pack;
    private int type;
    private int id;
    private String title;
    private String level;
    private String leastCount = "1";
    private String description;
    private String name;
    private int isAcceptOrders;
    private String lowStockTip;
    private String varietyId;
    private String pluckingTime;

    private String preBuyPersonsCount;
    private int categoryId;
    private String origin;
    private int nameId;
    private String variety;
    private String goodCommentsRate;
    private String category;
    private double price;
    private int freight;
    private String brand;
    private String marketingTime;
    private String deliveryTime;
    private String saleDeadline;
    private String storeId;
    private Double inventory;
    private String marketId;
    private String lastSnapshotId;
    private String deposit;
    private String depositWithUnit;
    private String packageContainer;
    private String packageUnit;
    private String unit;
    private double moq;
    private List<String> banner;
    /**
     * color : #000000
     * name : 搜索1
     */
    private double incr;/*添加购物车的倍数字段适应多倍和1倍*/

    private List<HomeCommTag> tags;
    private List<String> imgList;
    private List<Evaluate> comments;


    Double discountRate;
    String originalPrice;
    Double priceOnly;

    public Double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Double discountRate) {
        this.discountRate = discountRate;
    }

    public String getOriginalPrice() {
        if (getProductSpecPrice() != null) {
            return String.valueOf(getProductSpecPrice().getPrice());
        }
        return originalPrice;
    }

    public void setOriginalPrice(String originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Double getPriceOnly() {
        return priceOnly;
    }

    public void setPriceOnly(double priceOnly) {
        this.priceOnly = priceOnly;
    }

    public double getMoq() {
        return moq;
    }

    public void setMoq(double moq) {
        this.moq = moq;
    }

    public double getIncr() {
        return incr < 0.01 ? 0.01 : incr;
    }

    public void setIncr(double incr) {
        this.incr = incr;
    }

    public boolean isDc() {
        return isDc;
    }

    public void setDc(boolean dc) {
        isDc = dc;
    }

    public String getDepositWithUnit() {
        return depositWithUnit;
    }

    public String getPackageContainer() {
        return packageContainer;
    }

    public void setPackageContainer(String packageContainer) {
        this.packageContainer = packageContainer;
    }

    public String getPackageUnit() {
        return packageUnit;
    }

    public void setPackageUnit(String packageUnit) {
        this.packageUnit = packageUnit;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public void setDepositWithUnit(String depositWithUnit) {
        this.depositWithUnit = depositWithUnit;
    }

    public void setInventory(Double inventory) {
        this.inventory = inventory;
    }

    public String getDeposit() {
        return deposit;
    }

    public float getDepositFloat() {

        float f = 0;
        if (deposit != null && !"".equals(deposit) && "null".equals(deposit)) {
            f = Float.valueOf(deposit);
        }
        return f;
    }

    public void setDeposit(String deposit) {
        this.deposit = deposit;
    }

    public void setLastSnapshotId(String lastSnapshotId) {
        this.lastSnapshotId = lastSnapshotId;
    }

    public String getLastSnapshotId() {
        return lastSnapshotId;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getDeliveryTime() {
        if (deliveryTime != null) {
            deliveryTime = deliveryTime.replace("00:00:00", "");
        }
        return deliveryTime == null ? "" : deliveryTime;
    }

    public void setDeliveryTime(String deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getLevelId() {
        return levelId;
    }

    public void setLevelId(String levelId) {
        this.levelId = levelId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public int getCommentsCount() {
        return commentsCount;
    }

    public void setCommentsCount(int commentsCount) {
        this.commentsCount = commentsCount;
    }

    public String getPack() {
        return pack;
    }

    public void setPack(String pack) {
        this.pack = pack;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getLeastCount() {
        return leastCount;
    }

    public void setLeastCount(String leastCount) {
        this.leastCount = leastCount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIsAcceptOrders() {
        return isAcceptOrders;
    }

    public void setIsAcceptOrders(int isAcceptOrders) {
        this.isAcceptOrders = isAcceptOrders;
    }

    public String getLowStockTip() {
        return lowStockTip;
    }

    public void setLowStockTip(String lowStockTip) {
        this.lowStockTip = lowStockTip;
    }

    public String getVarietyId() {
        return varietyId;
    }

    public void setVarietyId(String varietyId) {
        this.varietyId = varietyId;
    }

    public String getPluckingTime() {
        return pluckingTime;
    }

    public void setPluckingTime(String pluckingTime) {
        this.pluckingTime = pluckingTime;
    }


    public String getPreBuyPersonsCount() {
        return preBuyPersonsCount;
    }

    public void setPreBuyPersonsCount(String preBuyPersonsCount) {
        this.preBuyPersonsCount = preBuyPersonsCount;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public int getNameId() {
        return nameId;
    }

    public void setNameId(int nameId) {
        this.nameId = nameId;
    }

    public String getVariety() {
        return variety;
    }

    public void setVariety(String variety) {
        this.variety = variety;
    }

    public String getGoodCommentsRate() {
        return goodCommentsRate;
    }

    public void setGoodCommentsRate(String goodCommentsRate) {
        this.goodCommentsRate = goodCommentsRate;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public double getPrice() {
        if (promotion != null) {
            return promotion.getPrice();
        }
        if (productSpecPrice != null) {
            return productSpecPrice.getPrice();
        }
        return 0;
    }

    public String getPriceFloat() {
        String s = null;
//        if (price != null && price.contains("元")) {
//            int index = price.indexOf("元");
//            s = price.substring(0, index);
//        }

        return s;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getFreight() {
        return freight;
    }

    public void setFreight(int freight) {
        this.freight = freight;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getMarketingTime() {
        return marketingTime;
    }

    public void setMarketingTime(String marketingTime) {
        this.marketingTime = marketingTime;
    }

    public String getSaleDeadline() {
        return saleDeadline;
    }

    public void setSaleDeadline(String saleDeadline) {
        this.saleDeadline = saleDeadline;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public List<String> getBanner() {
        return banner;
    }

    public void setBanner(List<String> banner) {
        this.banner = banner;
    }

    public List<HomeCommTag> getTags() {
        return tags;
    }

    public void setTags(List<HomeCommTag> tags) {
        this.tags = tags;
    }

    public List<String> getImgList() {
        return imgList;
    }

    public void setImgList(List<String> imgList) {
        this.imgList = imgList;
    }

    public List<Evaluate> getComments() {
        return comments;
    }

    public void setComments(List<Evaluate> comments) {
        this.comments = comments;
    }

    public double getInventory() {
        return inventory == null ? 0 : inventory;
    }

    public String getDepositStr() {
        String s = "订金";
        if (depositWithUnit != null) {
            s += depositWithUnit;
        }
        return s;
    }

    public String getDepositStr2() {
        String s = "订金：";
        if (depositWithUnit != null) {
            s += depositWithUnit;
        }
        return s;
    }

    public boolean isAcceptOrders() {
        //1是接单
        return isAcceptOrders == 1;
    }

    private ProductParseDtoBean productParseDto;

    public ProductParseDtoBean getProductParseDto() {
        return productParseDto;
    }

    public void setProductParseDto(ProductParseDtoBean productParseDto) {
        this.productParseDto = productParseDto;
    }


    public static class ProductParseDtoBean {

        /**
         * description : 精品腾源烘干海带丝
         * storeId : 74
         * categoryiId : 8
         * createdTime : 2017-03-27 09:32:00
         * id : 3051
         * categoryiiId : 64
         * modifiedTime : 2017-03-27 09:34:08
         * merchantId : 79
         * productTagParseDtos : [{"tagParseDto":{"type":2,"modifiedTime":"2018-11-14 09:57:54","color":"#13c206","modifierId":0,"id":2,"status":1,"createdTime":"2018-11-23 10:40:32","description":"123","creatorId":0,"name":"e批23","imageId":39304},"tagId":2,"id":66,"productId":3051,"name":"e批23"}]
         * type : 1
         * title : 海带丝
         * number : 01170327045167
         * shareInventory : false
         * categoryiiiId : 185
         * isShareInventory : false
         */

        private String description;
        private int storeId;
        private int categoryiId;
        private String createdTime;
        private int id;
        private int categoryiiId;
        private String modifiedTime;
        private int merchantId;
        private int type;
        private String title;
        private String number;
        private boolean shareInventory;
        private int categoryiiiId;
        private boolean isShareInventory;
        private List<ProductTagParseDtosBean> productTagParseDtos;

        //新增字段
        private Object snapshotParseDtos;
        private Object creatorId;
        private Object modifierId;
        private Object productSpecPromotionParseDto;
        private Object tags;
        private Object productSpecParseDtos;
        private Object productImageParseDtos;
        private Object auditStatus;

        public Object getSnapshotParseDtos() {
            return snapshotParseDtos;
        }

        public void setSnapshotParseDtos(Object snapshotParseDtos) {
            this.snapshotParseDtos = snapshotParseDtos;
        }

        public Object getCreatorId() {
            return creatorId;
        }

        public void setCreatorId(Object creatorId) {
            this.creatorId = creatorId;
        }

        public Object getModifierId() {
            return modifierId;
        }

        public void setModifierId(Object modifierId) {
            this.modifierId = modifierId;
        }

        public Object getProductSpecPromotionParseDto() {
            return productSpecPromotionParseDto;
        }

        public void setProductSpecPromotionParseDto(Object productSpecPromotionParseDto) {
            this.productSpecPromotionParseDto = productSpecPromotionParseDto;
        }

        public Object getTags() {
            return tags;
        }

        public void setTags(Object tags) {
            this.tags = tags;
        }

        public Object getProductSpecParseDtos() {
            return productSpecParseDtos;
        }

        public void setProductSpecParseDtos(Object productSpecParseDtos) {
            this.productSpecParseDtos = productSpecParseDtos;
        }

        public Object getProductImageParseDtos() {
            return productImageParseDtos;
        }

        public void setProductImageParseDtos(Object productImageParseDtos) {
            this.productImageParseDtos = productImageParseDtos;
        }

        public Object getAuditStatus() {
            return auditStatus;
        }

        public void setAuditStatus(Object auditStatus) {
            this.auditStatus = auditStatus;
        }


        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public int getStoreId() {
            return storeId;
        }

        public void setStoreId(int storeId) {
            this.storeId = storeId;
        }

        public int getCategoryiId() {
            return categoryiId;
        }

        public void setCategoryiId(int categoryiId) {
            this.categoryiId = categoryiId;
        }

        public String getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(String createdTime) {
            this.createdTime = createdTime;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getCategoryiiId() {
            return categoryiiId;
        }

        public void setCategoryiiId(int categoryiiId) {
            this.categoryiiId = categoryiiId;
        }

        public String getModifiedTime() {
            return modifiedTime;
        }

        public void setModifiedTime(String modifiedTime) {
            this.modifiedTime = modifiedTime;
        }

        public int getMerchantId() {
            return merchantId;
        }

        public void setMerchantId(int merchantId) {
            this.merchantId = merchantId;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public boolean isShareInventory() {
            return shareInventory;
        }

        public void setShareInventory(boolean shareInventory) {
            this.shareInventory = shareInventory;
        }

        public int getCategoryiiiId() {
            return categoryiiiId;
        }

        public void setCategoryiiiId(int categoryiiiId) {
            this.categoryiiiId = categoryiiiId;
        }

        public boolean isIsShareInventory() {
            return isShareInventory;
        }

        public void setIsShareInventory(boolean isShareInventory) {
            this.isShareInventory = isShareInventory;
        }

        public List<ProductTagParseDtosBean> getProductTagParseDtos() {
            return productTagParseDtos;
        }

        public void setProductTagParseDtos(List<ProductTagParseDtosBean> productTagParseDtos) {
            this.productTagParseDtos = productTagParseDtos;
        }

        public static class ProductTagParseDtosBean {
            /**
             * tagParseDto : {"type":2,"modifiedTime":"2018-11-14 09:57:54","color":"#13c206","modifierId":0,"id":2,"status":1,"createdTime":"2018-11-23 10:40:32","description":"123","creatorId":0,"name":"e批23","imageId":39304}
             * tagId : 2
             * id : 66
             * productId : 3051
             * name : e批23
             */

            private TagParseDtoBean tagParseDto;
            private int tagId;
            private int id;
            private int productId;
            private String name;

            public TagParseDtoBean getTagParseDto() {
                return tagParseDto;
            }

            public void setTagParseDto(TagParseDtoBean tagParseDto) {
                this.tagParseDto = tagParseDto;
            }

            public int getTagId() {
                return tagId;
            }

            public void setTagId(int tagId) {
                this.tagId = tagId;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getProductId() {
                return productId;
            }

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public static class TagParseDtoBean {
                /**
                 * type : 2
                 * modifiedTime : 2018-11-14 09:57:54
                 * color : #13c206
                 * modifierId : 0
                 * id : 2
                 * status : 1
                 * createdTime : 2018-11-23 10:40:32
                 * description : 123
                 * creatorId : 0
                 * name : e批23
                 * imageId : 39304
                 */

                private int type;
                private String modifiedTime;
                private String color;
                private int modifierId;
                private int id;
                private int status;
                private String createdTime;
                private String description;
                private int creatorId;
                private String name;
                private int imageId;

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public String getModifiedTime() {
                    return modifiedTime;
                }

                public void setModifiedTime(String modifiedTime) {
                    this.modifiedTime = modifiedTime;
                }

                public String getColor() {
                    return color;
                }

                public void setColor(String color) {
                    this.color = color;
                }

                public int getModifierId() {
                    return modifierId;
                }

                public void setModifierId(int modifierId) {
                    this.modifierId = modifierId;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public String getCreatedTime() {
                    return createdTime;
                }

                public void setCreatedTime(String createdTime) {
                    this.createdTime = createdTime;
                }

                public String getDescription() {
                    return description;
                }

                public void setDescription(String description) {
                    this.description = description;
                }

                public int getCreatorId() {
                    return creatorId;
                }

                public void setCreatorId(int creatorId) {
                    this.creatorId = creatorId;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getImageId() {
                    return imageId;
                }

                public void setImageId(int imageId) {
                    this.imageId = imageId;
                }
            }
        }
    }

    public static class PromotionBean {

        private int itemId;
        private int status;
        private String beginTime;
        private int id;
        private double price;
        private String endTime;
        private String quantityPerAccount;
        private int type;
        private String tagImageUrl;

        public String getTagImageUrl() {
            return tagImageUrl;
        }

        public void setTagImageUrl(String tagImageUrl) {
            this.tagImageUrl = tagImageUrl;
        }

        public int getItemId() {
            return itemId;
        }

        public void setItemId(int itemId) {
            this.itemId = itemId;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getBeginTime() {
            return beginTime;
        }

        public void setBeginTime(String beginTime) {
            this.beginTime = beginTime;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getQuantityPerAccount() {
            return quantityPerAccount;
        }

        public void setQuantityPerAccount(String quantityPerAccount) {
            this.quantityPerAccount = quantityPerAccount;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }

    public static class ProductSpecPriceBean {

        private int productSpecId;
        private String modifiedTime;
        private int modifierId;
        private int productId;
        private double price;
        private int id;
        private boolean salesStatus;
        private String createdTime;
        private int groupId;
        private int creatorId;
        private String moq;

        //新增字段
        private Object addPrice;
        private Object addPriceType;
        private boolean prePrice;//价格前置/后置(true:前置,false:后置)

        public boolean isPrePrice() {
            return prePrice;
        }

        public void setPrePrice(boolean prePrice) {
            this.prePrice = prePrice;
        }

        public Object getAddPrice() {
            return addPrice;
        }

        public void setAddPrice(Object addPrice) {
            this.addPrice = addPrice;
        }

        public Object getAddPriceType() {
            return addPriceType;
        }

        public void setAddPriceType(Object addPriceType) {
            this.addPriceType = addPriceType;
        }


        public int getProductSpecId() {
            return productSpecId;
        }

        public void setProductSpecId(int productSpecId) {
            this.productSpecId = productSpecId;
        }

        public String getModifiedTime() {
            return modifiedTime;
        }

        public void setModifiedTime(String modifiedTime) {
            this.modifiedTime = modifiedTime;
        }

        public int getModifierId() {
            return modifierId;
        }

        public void setModifierId(int modifierId) {
            this.modifierId = modifierId;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public boolean isSalesStatus() {
            return salesStatus;
        }

        public void setSalesStatus(boolean salesStatus) {
            this.salesStatus = salesStatus;
        }

        public String getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(String createdTime) {
            this.createdTime = createdTime;
        }

        public int getGroupId() {
            return groupId;
        }

        public void setGroupId(int groupId) {
            this.groupId = groupId;
        }

        public int getCreatorId() {
            return creatorId;
        }

        public void setCreatorId(int creatorId) {
            this.creatorId = creatorId;
        }

        public String getMoq() {
            return moq;
        }

        public void setMoq(String moq) {
            this.moq = moq;
        }
    }

    /**
     * 评论改版数据结构变动2019-5-24
     */
    private CommentBean comment;

    public CommentBean getComment() {
        return comment;
    }

    public void setComment(CommentBean comment) {
        this.comment = comment;
    }

    public static class CommentBean {

        private int commentsCount;
        private String goodCommentsRate;
        private List<CommentsBean> comments;
        private List<GroupCountBean> groupCount;

        public int getCommentsCount() {
            return commentsCount;
        }

        public void setCommentsCount(int commentsCount) {
            this.commentsCount = commentsCount;
        }

        public String getGoodCommentsRate() {
            return goodCommentsRate;
        }

        public void setGoodCommentsRate(String goodCommentsRate) {
            this.goodCommentsRate = goodCommentsRate;
        }

        public List<CommentsBean> getComments() {
            return comments;
        }

        public void setComments(List<CommentsBean> comments) {
            this.comments = comments;
        }

        public List<GroupCountBean> getGroupCount() {
            return groupCount;
        }

        public void setGroupCount(List<GroupCountBean> groupCount) {
            this.groupCount = groupCount;
        }

        public static class CommentsBean {
            /**
             * attachment_ids : 42894
             * orderNo : 175632652693405696
             * productId : 13195
             * orderId : 28805
             * accountName :
             lpppplll
             * productScore : 0
             * productCount : 10.25
             * content : vxbd半身不遂吧13
             * parentId : null
             * fast_message : 规格整齐,很新鲜
             * productTitle : 乳制品
             * accountId : 37
             * score : 3
             * accountPhone : 18621643734
             * logisticsScore : 0
             * fastMessage : ["规格整齐","很新鲜"]
             * serviceScore : 0
             * hasRead : true
             * id : 2565
             * time : 2019-05-22
             * chargeUnit : 斤
             * status : 1
             * attachmentUrls : ["http://imgtest.epfresh.com/2019%2F04%2F30%2F9ae39e84307a4bca808339d6c69972ae.jpg"]
             */

            private String attachment_ids;
            private String orderNo;
            private int productId;
            private int orderId;
            private String accountName;
            private int productScore;
            private double productCount;
            private String content;
            private Object parentId;
            private String fast_message;
            private String productTitle;
            private int accountId;
            private int score;
            private String accountPhone;
            private int logisticsScore;
            private int serviceScore;
            private boolean hasRead;
            private int id;
            private String time;
            private String chargeUnit;
            private int status;
            private List<String> fastMessage;
            private List<String> attachmentUrls;

            public String getAttachment_ids() {
                return attachment_ids;
            }

            public void setAttachment_ids(String attachment_ids) {
                this.attachment_ids = attachment_ids;
            }

            public String getOrderNo() {
                return orderNo;
            }

            public void setOrderNo(String orderNo) {
                this.orderNo = orderNo;
            }

            public int getProductId() {
                return productId;
            }

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public int getOrderId() {
                return orderId;
            }

            public void setOrderId(int orderId) {
                this.orderId = orderId;
            }

            public String getAccountName() {
                return accountName;
            }

            public void setAccountName(String accountName) {
                this.accountName = accountName;
            }

            public int getProductScore() {
                return productScore;
            }

            public void setProductScore(int productScore) {
                this.productScore = productScore;
            }

            public double getProductCount() {
                return productCount;
            }

            public void setProductCount(double productCount) {
                this.productCount = productCount;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public Object getParentId() {
                return parentId;
            }

            public void setParentId(Object parentId) {
                this.parentId = parentId;
            }

            public String getFast_message() {
                return fast_message;
            }

            public void setFast_message(String fast_message) {
                this.fast_message = fast_message;
            }

            public String getProductTitle() {
                return productTitle;
            }

            public void setProductTitle(String productTitle) {
                this.productTitle = productTitle;
            }

            public int getAccountId() {
                return accountId;
            }

            public void setAccountId(int accountId) {
                this.accountId = accountId;
            }

            public int getScore() {
                return score;
            }

            public void setScore(int score) {
                this.score = score;
            }

            public String getAccountPhone() {
                return accountPhone;
            }

            public void setAccountPhone(String accountPhone) {
                this.accountPhone = accountPhone;
            }

            public int getLogisticsScore() {
                return logisticsScore;
            }

            public void setLogisticsScore(int logisticsScore) {
                this.logisticsScore = logisticsScore;
            }

            public int getServiceScore() {
                return serviceScore;
            }

            public void setServiceScore(int serviceScore) {
                this.serviceScore = serviceScore;
            }

            public boolean isHasRead() {
                return hasRead;
            }

            public void setHasRead(boolean hasRead) {
                this.hasRead = hasRead;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getChargeUnit() {
                return chargeUnit;
            }

            public void setChargeUnit(String chargeUnit) {
                this.chargeUnit = chargeUnit;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public List<String> getFastMessage() {
                return fastMessage;
            }

            public void setFastMessage(List<String> fastMessage) {
                this.fastMessage = fastMessage;
            }

            public List<String> getAttachmentUrls() {
                return attachmentUrls;
            }

            public void setAttachmentUrls(List<String> attachmentUrls) {
                this.attachmentUrls = attachmentUrls;
            }
        }

        public static class GroupCountBean {
            /**
             * cnt : 6
             * element : 价格合理
             */

            private int cnt;
            private String element;

            public int getCnt() {
                return cnt;
            }

            public void setCnt(int cnt) {
                this.cnt = cnt;
            }

            public String getElement() {
                return element;
            }

            public void setElement(String element) {
                this.element = element;
            }
        }
    }
}
